package com.egao.common.module.company.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 场地(Field)表实体类
 * @author dl
 */
@Data
@ApiModel(description = "场地")
@TableName("field")
public class Field implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("场地编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("场地名称")
    private String name;

    @ApiModelProperty("场地类型 1预约场地 2非预约场地")
    private String type;

    @ApiModelProperty("容纳人数")
    private Integer capacity;

    @ApiModelProperty("简介")
    private String content;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("逻辑删除 0正常 1删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("原始编号id")
    private String oldId;
}